
# 2. 设置配置信息,添加下列配置信息
# 模板: dialect+driver://username:password@host:port/database
DIALECT = 'mysql'
DRIVER = 'pymysql'
USERNAME = 'yuan'
PASSWORD = '123456'
HOST = '127.0.0.1'
PORT = 3306
DATABASE = 'db_demo5'

SQLALCHEMY_DATABASE_URI="{}+{}://{}:{}@{}:{}/{}?charset=utf8".format(DIALECT,DRIVER,USERNAME,PASSWORD,HOST,PORT,DATABASE)

SQLALCHEMY_TRACK_MODIFICATIONS = True